
    <h2 class="form-header">
        <?php
        echo CHtml::encode($model->name);
        ?>
    </h2>

    <div class="show-drill-info">
        <p>Author : <b><?php echo $model->author->fullname;?></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Players Required : <b><?php echo $model->players;?></b></p>
    </div>

    <div class="show-drill-category">
    <p class="category">Category : <b><?php echo DrillCategory::model()->findByPk($model->category)->GetFullCategoryName() ;?></b></p>
    </div>

    <div class="show-drill">

    <?php if($model->purpose!=""):?>
    <div class="show-drill-card">
        <h3>Purpose</h3>
        <?php echo $model->purpose;?>
    </div>
    <?php endif; ?>



    <?php if($model->description!=""):?>
        <div class="show-drill-card">
        <h3>Description</h3>
        <?php echo $model->description;?>
        </div>
    <?php endif; ?>





    <?php
    $diag_html = "-";
    if(count($model->drillDiagrams)>0) {
        echo "<div class=\"show-drill-card\">";
        echo "<h3>Images</h3>";
        $diag_html = '<table class="structure">';
        $diag_html .=  '<tr><td>';
        foreach ($model->drillDiagrams as $d) {
            $diag_html .=  '<img class="drill-image" src="images/diagrams/'.$d->id.'.'.$d->file_ext.'">';
        };
        $diag_html .=  '</td></tr>';
        $diag_html .= '</table>';
        echo $diag_html;
        echo "</div>";
    }
    ?>


    <?php if($model->tips!=""):?>
        <div class="show-drill-card">
            <h3>Coaching Tips</h3>
            <?php echo $model->tips;?>
        </div>
    <?php endif; ?>



    <?php if($model->youtube_id!=""):?>
        <div class="show-drill-card">
            <h3>Video</h3>
            <iframe width="500" height="360" src="//www.youtube.com/embed/<?php echo $model->youtube_id;?>" frameborder="0" allowfullscreen></iframe>
        </div>
    <?php endif; ?>



</div>
